﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EF4.Core.Service;
using EF4.Core.Repository;

namespace EF4.Services
{
    public class UnitOfWork : IUnitOfWork
    {
        private IRepositoryContext _repositoryContext;

        public UnitOfWork(IRepositoryContext repositoryContext)
        {
            _repositoryContext = repositoryContext;
        }

        public int SaveChanges()
        {
            return _repositoryContext.SaveChanges();
        }

    }
}
